package com.hgd.evp.common.entity;

import java.lang.reflect.Method;

public class ToMergedEntity<T> {
    private T data;
    private Method writeMethod;
    private Method readMethod;
    private String feignMethod;
    private String toMergedArgs;

    public ToMergedEntity(T data, Method writeMethod, Method readMethod, String feignMethod, String toMergedArgs) {
        this.data = data;
        this.writeMethod = writeMethod;
        this.readMethod = readMethod;
        this.feignMethod = feignMethod;
        this.toMergedArgs = toMergedArgs;
    }

    public ToMergedEntity() {
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Method getWriteMethod() {
        return writeMethod;
    }

    public void setWriteMethod(Method writeMethod) {
        this.writeMethod = writeMethod;
    }

    public Method getReadMethod() {
        return readMethod;
    }

    public void setReadMethod(Method readMethod) {
        this.readMethod = readMethod;
    }

    public String getToMergedArgs() {
        return toMergedArgs;
    }

    public void setToMergedArgs(String toMergedArgs) {
        this.toMergedArgs = toMergedArgs;
    }

    public String getFeignMethod() {
        return feignMethod;
    }

    public void setFeignMethod(String feignMethod) {
        this.feignMethod = feignMethod;
    }
}
